<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>CSS3 动画</title>

    <style>
        body{
            overflow: hidden;
            width: 100%;
            height: 100%;
            margin: 0;
            padding: 0;
            background:url("start.gif");
            display: flex;
            /*transform-style: preserve-3d;*/
        }
        .box1{
            width: 400px;
            margin-top: 80px;
            margin-left: 200px;
            animation: rotate1 4s linear infinite;

        }
        .box{
            width: 400px;
            margin-top: 80px;
            margin-left: 200px;
            animation: rotate 4s linear infinite;

        }
        img{
            width: 100%;
            /*display: block;*/
        }
        @keyframes rotate {
            0%{
                transform: rotateZ(0deg);
            }
            100%{
                transform: rotateZ(-360deg);
            }
        }
        @keyframes rotate1 {
            0%{
                transform: rotateZ(0deg);
            }
            100%{
                transform:  rotateZ(360deg);
            }
        }
        @keyframes rotate2 {
            0%{
                transform:translateZ(100px)  rotateY(0deg);

            }
            50%{
                transform:translateZ(100px)  rotateY(180deg);
            }
            100%{
                transform:translateZ(100px)  rotateY(360deg);
            }
        }
        .box2{
            width: 20px;
            height: 400px;
            background: red;
            position: absolute;
            left: 400px;
            top:300px
        }
        .box3{
            width: 20px;
            height: 400px;
            background: red;
            position: absolute;
            left: 980px;
            top:300px
        }
        .box4{
            animation: rotate2 4s linear infinite;
            position: absolute;
            left: 600px;
            top:490px;
            width: 200px;
            height: 200px;

        }
        .box4 img{
            width:100%;
        }
    </style>
</head>
<body>
<div class="box2">

</div>
<div class="box3">

</div>
 <div class="box">
     <img src="fengche.png">
 </div>
<div class="box1">
    <img src="fengche.png">
</div>
<div class="box4">
    <img src="h5.png">
</div>
</body>
</html>